<?php
require('path.inc.php');
$user = new User($query);
$navClass = new AdminNav($query);
$langClass = new Language($query);
$adminConfig = new AdminConfig($query);
$user->auth();
$page->title .= ' 头部页面';
$page->name = 'admin_index_top'; //页面名字,和文件名相同	
$page->addCss('admin_style.css');
$page->addJs('jquery.js');
$page->addJs('admin.js');

$group_id = $user->getAuthInfo('group_id');

$user_arr = require($cfg['path']['conf'] . 'group_right/g'.$group_id.'.cfg.php');
$ids = implode( ",", $user_arr );
$where = " id in (".$ids.")";
$where .=" and status=1 and parent_id!=0";
$dataList = $navClass->getAll($where,'*',' order by list_root , list_order ');
$langList = $langClass->getAll('','*',' order by list_order desc , id desc ');










$group_id = $user->getAuthInfo('group_id');
$u_id = $user->getAuthInfo('user_id');
$u_lang = $user->getAuthInfo('language');
$lang_power = $adminConfig->getInfo('language',1);
$groupname = $user->getGroupName($group_id , 'group_name');
$username = $user->getAuthInfo('username');
require_once($page->display($page->name));
?>